<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="vi" xml:lang="vi">
<head>
<title>Admin Page</title>

<link rel="stylesheet" type="text/css" href="/css/admin/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="/js/admin/jquery/ui/themes/ui-lightness/ui.all.css" />
<script type="text/javascript" src="/js/admin/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/admin/jquery/ui/ui.core.js"></script>
<script type="text/javascript" src="/js/admin/jquery/superfish/js/superfish.js"></script>
<script type="text/javascript" src="/js/admin/jquery/tab.js"></script>
<link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------
$(document).ready(function(){
	
    // Confirm Delete
    $('#form').submit(function(){
        if ($(this).attr('action').indexOf('delete',1) != -1) {
            if (!confirm ('Delete/Uninstall cannot be undone! Are you sure you want to do this?')) {
                return false;
            }
        }
    });
    	
    // Confirm Uninstall
    $('a').click(function(){
        if ($(this).attr('href') != null && $(this).attr('href').indexOf('uninstall',1) != -1) {
            if (!confirm ('Delete/Uninstall cannot be undone! Are you sure you want to do this?')) {
                return false;
            }
        }
    });
});
</script>
<script type="text/javascript">
/*$(document).ready(function(){
    $(".scrollbox").each(function(i) {
    	$(this).attr('id', 'scrollbox_' + i);
		sbox = '#' + $(this).attr('id');
    	$(this).after('<span><a onclick="$(\'' + sbox + ' :checkbox\').attr(\'checked\', \'checked\');"><u>Chọn tất cả</u></a> / <a onclick="$(\'' + sbox + ' :checkbox\').attr(\'checked\', \'\');"><u>Bỏ chọn tất cả</u></a></span>');
	});
});*/
</script>

<script type="text/javascript">
$(document).ready(function() {
  $(".list tr:even").css("background-color", "#F4F4F8");
});
</script>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$("area[rel^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false,slideshow: false,deeplinking: false});
		$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false,deeplinking: false});
		$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false, hideflash: true,deeplinking: false});
	});
</script>
</head>
<body>
<div id="container">
<div id="header">
 <div class="div1">
    <div class="div2"></div>
        <div class="div3">
        <?php 
        $session = new Zend_Session_Namespace('login.auth');
		?>
         <?php if(isset($session->id_user) && $session->id_user!=null ) {?>
        <img style="position: relative; top: 3px;" alt="" src="/images/admin/lock.png">
        &nbsp;You are logged in as <span><?php echo $session->name_user;?></span>
        <?php }?>
        </div>
      </div>
	</div>
<?php if(isset($session->id_user) && $session->id_user!=null ) {?>
 
<div id="menu">
    <ul class="nav left" style="display: none;">
    <li id="home" class=""><a class="top" href="/admin/index">Homepage</a></li>
    <li id="user" ><a class="top">User</a>
      <ul>
        <li><a href="/admin/user">User Manage</a></li>
        <li><a href="/admin/listgroupuser">Permission</a></li>

      </ul>
    </li>
    <li id="store" ><a class="top">Store Manage</a>
      <ul>
        <li><a href="/admin/module">Module</a></li>
        <li><a href="/admin/page">Page</a></li>
        <li><a href="/admin/menu">Menu</a></li>

      </ul>
    </li>
    
    <li id="setting" ><a class="top">Setting</a>
      <ul>
      	<li><a href="/admin/setting">Setting</a></li>
        <li><a href="/admin/language">Language Manage</a></li>
       

      </ul>
    </li>
     <li id="bill" ><a class="top">Orders</a>
      <ul>
      	<li><a href="/admin/bill">Orders</a></li>
       
      </ul>
    </li>
     
  </ul>
  
    <ul class="nav right" style="display: block;">
      <li id="store"><a class="top" onclick="window.open('/');">Store Front</a>
        <ul style="display: none; visibility: hidden;">
                  </ul>
      </li>
      <li id="store"><a href="/admin/login/logout" class="top">Logout</a></li>
    </ul>
    <script type="text/javascript"><!--
$(document).ready(function() {
	$('.nav').superfish({
		hoverClass	 : 'sfHover',
		pathClass	 : 'overideThisToUse',
		delay		 : 0,
		animation	 : {height: 'show'},
		speed		 : 'normal',
		autoArrows   : false,
		dropShadows  : false, 
		disableHI	 : false, /* set to true to disable hoverIntent detection */
		onInit		 : function(){},
		onBeforeShow : function(){},
		onShow		 : function(){},
		onHide		 : function(){}
	});
	
	$('.nav').css('display', 'block');
});
//--></script>
   <script type="text/javascript"><!--
$(document).ready(function() {
	$('.nav').superfish({
		hoverClass	 : 'sfHover',
		pathClass	 : 'overideThisToUse',
		delay		 : 0,
		animation	 : {height: 'show'},
		speed		 : 'normal',
		autoArrows   : false,
		dropShadows  : false, 
		disableHI	 : false, /* set to true to disable hoverIntent detection */
		onInit		 : function(){},
		onBeforeShow : function(){},
		onShow		 : function(){},
		onHide		 : function(){}
	});
	
	$('.nav').css('display', 'block');
});
//--></script>
  <script type="text/javascript"><!--
      function getURLVar(urlVarName) {
        
	var urlHalves = String(document.location).toLowerCase().split(':');
	var urlVarValue = '';
	if (urlHalves[1]) {
		var urlVars = urlHalves[1].split('/');
		urlVarValue = urlVars[4];
	}
	return urlVarValue;
}

$(document).ready(function() {
    route = getURLVar('route');
    var temp = route.split('?');
    if (temp[1] != "") {
        route = temp[0];
    }

    if (route == "index") {
        $('#home').addClass('selected');
    }else {
        part = route.split('/');

        url = part[0];

        if (part[1]) {
            url += '/' + part[1];
        }

        $('a[href*=\'' + url + '\']').parents('li[id]').addClass('selected');
    }
});  
//--></script>
  </div>
<?php }?>

<div id="content">
  <!-- add content here -->  
  <?php echo $this->layout()->content ?>
</div>
</div>
<div id="footer"><a href="/cms">CMS</a></div>
</body>
</html>



